package com.yl.pattern.behavioralmodel.mediator;

/**
 * @Author 小羊
 * @Date 1/11/2024下午 3:37
 * @ClassName HouseOwner
 * @Description 具体同事类 房屋拥有者
 */
public class HouseOwner extends Person{
    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }

    public void constact(String message){
        mediator.constact(message, this);
    }

    public void getMessage(String message){
        System.out.println("房主" + name +"获取到的信息：" + message);
    }
}
